﻿<%@ Page Title="Страница выбранной новости." Language="C#" MasterPageFile="~/Site.master"
    AutoEventWireup="true" CodeFile="OneNews.aspx.cs" Inherits="Tracks" %>
    
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<asp:Content ID="forMainContent" runat="server" ContentPlaceHolderID="mainContent">
    <asp:LoginView ID="LoginView1" runat="server">
        <RoleGroups>
            <asp:RoleGroup Roles="Administrator">
                <ContentTemplate>
                    <h3>
                        <asp:LinkButton ID="HyperLink1" runat="server" Text="Просмотр" OnClick="ViewButton_Click"/>
                        |
                        <asp:LinkButton ID="HyperLink2" runat="server" Text="Редактирование" OnClick="EditButton_Click" />
                    </h3>
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </asp:LoginView>
    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
        <asp:View ID="ViewView" runat="server">
            <asp:Label ID="newsTitle" runat="server" Text=""></asp:Label>
            <br />
            <br />
            <asp:Literal ID="newsBody" runat="server"></asp:Literal>
            <br />
            <br />
            <div align="right">
                <asp:Label ID="newsAuthor" runat="server" Text=""></asp:Label>
                ,
                <asp:Label ID="newsDate" runat="server" Text=""></asp:Label>
            </div>
        </asp:View>
        <asp:View ID="EditMultiView" runat="server">


            <br />
            <asp:Label ID="InfoLabel" runat="server" Text="" CssClass="redColor"></asp:Label>
            <br />
            <br />


            Заголовок:<br />
            <asp:TextBox ID="TitleTextBox" runat="server"></asp:TextBox>
            <br />
            <br />
            Содержание:<br />
            <FCKeditorV2:FCKeditor ID="AddNewsFCKeditor" runat="server" BasePath="Scripts/fck/" Height="500">
            </FCKeditorV2:FCKeditor>
            <br />
            <br />
            <asp:CheckBox ID="DeleteNews" runat="server" Text="Подлежит удалению" />
            <br />
            <br />
            <p align="center" style="border: 1px double black; width: 200px;">
                <asp:LinkButton ID="HyperLink5" runat="server" Text="Сохранить изменения" OnClick="SaveChangeButton_Click"/>
            </p>


        </asp:View>
    </asp:MultiView>
</asp:Content>
